package com.xt.LibaryDeskManager.service;

import com.xt.LibaryDeskManager.dto.UserMessage;
import com.xt.LibaryDeskManager.entity.Admin;
import com.xt.LibaryDeskManager.vo.LoginVo;
import com.xt.LibaryDeskManager.vo.UpdateVo;

/**
 * @author 童归权
 * @version 1.0 2021/1/30
 */
public interface AdminService {
    /**
     * 根据登录的信息查找用户
     * @param loginVo
     * @return
     */
    UserMessage selectByLoginVo(LoginVo loginVo)throws Exception;

    /**
     * 更新管理员信息
     * @param updateVo
     * @return
     * @throws Exception
     */
    int updateAdmin(UpdateVo updateVo) throws  Exception;
}
